package com.example.mobile2121606097wjc0509;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

public class ShowDataActivity2 extends AppCompatActivity {
    private TextView tvShowData2UserName;
    private TextView tvShowData2Password;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_show_data2);
        initView();
        Intent intent = getIntent();
        tvShowData2UserName.setText(intent.getStringExtra("userName"));
        Bundle bundle = intent.getExtras();
        tvShowData2Password.setText(bundle.getString("password"));
    }

    private void initView() {
        tvShowData2UserName=(TextView) findViewById(R.id.tvShowData2UserName);
        tvShowData2Password=(TextView) findViewById(R.id.tvShowData2Password);
    }
}